/*			使用三目表达式重写超重练习,如果超重则结果是真,否则结果是假.
 *
 */

#include<stdio.h>

int main() {
	int gender = 0, height = 0, weight = 0, result = 0;
	printf("输入性别,男1,女0\n");
	scanf("%d", &gender);
	printf("输入身高(cm)\n");
	scanf("%d", &height);
	printf("输入体重(Kg)\n");
	scanf("%d", &weight);

	result = gender ? (height - 105 >= weight) : (height - 110 >= weight);
	printf("健康程度为%d,1表是健康,0表示超重\n", result);
	return 0;

}
